Add boot script generator - #93
Conversation
5aa9184 to
086c38e
Compare
086c38e to
4a13be7
Compare
|
@bajtos Review please. /cc @raymondfeng @ritch |
4a13be7 to
dac8b1e
Compare
There was a problem hiding this comment.
Two empty lines, please keep only one of them.
|
In the future, when we implement support for multiple facets (e.g. configuring loopback app in "client"), we'll need to support "/client/boot" too. Right now, I just want to check that the current design won't make it difficult to support that? |
dac8b1e to
12d57b5
Compare
|
Yes, a simple refactor to accept a different destination dir will be possible. In that future case you describe, I'm thinking we can ask one more question (Is this a client or server side boot script? (show a list of two options |
|
@bajtos Added your review changes, PTAL again. |
12d57b5 to
a269d8c
Compare
There was a problem hiding this comment.
Maybe better to have the following:
/*
* The `app` object allows you to access a model by name (e.g. MyModel) as `app.models.MyModel`
* or a data source by name (e.g. MyMongoDB) as `app.dataSources.MyDataSource`
*/
process.nextTick(cb); // Please remove it if you already pass `cb` to an async functionThere was a problem hiding this comment.
Good idea. Updating, except for the comment which is too long to fit in 80 chars. I also add the app object comments to sync.js.
- Add code for `slc loopback:boot script` command - Add unit tests
a269d8c to
3ce547c
Compare
|
LGTM, please wait for @raymondfeng to approve too. |
|
LGTM |
|
@crandmck Merged. |
slc loopback:boot scriptcommandConnected to #90